package com.example.designpatterns.proxy.staticproxy;

public class IntermediaryProxy implements IRentHouse {
    private IRentHouse iRent;

    public IntermediaryProxy(IRentHouse iRentHouse) {
        iRent = iRentHouse;
    }

    @Override
    public void rentHouse() {
        System.out.println("交中介费");
        iRent.rentHouse();
        System.out.println("中介负责维修管理");
    }
}
